|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--jade.content.abs.AbsObject
|
+--jade.content.abs.AbsTerm
|
+--jade.content.abs.AbsPrimitive
| Constructor Summary | |
AbsPrimitive(java.lang.String kind)
Constructor. |
|
AbsPrimitive(java.lang.String kind,
java.lang.Object value)
Constructor. |
|
| Method Summary | |
protected void |
dump(int indent)
|
boolean |
getBoolean()
Get a boolean value. |
float |
getFloat()
Gets a float value. |
int |
getInteger()
Gets an integer value. |
java.lang.Object |
getObject()
|
java.lang.String |
getString()
Gets a string value. |
void |
set(boolean value)
Sets a boolean value. |
void |
set(float value)
Sets a float value. |
void |
set(int value)
Sets an integer value. |
void |
set(java.lang.String value)
Sets a string value. |
static java.lang.Object |
toObject(AbsPrimitive abs)
|
static AbsPrimitive |
wrap(boolean value)
|
static AbsPrimitive |
wrap(float value)
|
static AbsPrimitive |
wrap(int value)
|
static AbsPrimitive |
wrap(java.lang.String value)
|
| Methods inherited from class jade.content.abs.AbsObject |
dump,
getAbsObject,
getCount,
getNames,
getTypeName,
isGrounded,
set |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public AbsPrimitive(java.lang.String kind,
java.lang.Object value)
kind - name of the type of the primitive.value - value of the primitive.public AbsPrimitive(java.lang.String kind)
kind - name of the type of the primitive.| Method Detail |
public static AbsPrimitive wrap(java.lang.String value)
public static AbsPrimitive wrap(boolean value)
public static AbsPrimitive wrap(int value)
public static AbsPrimitive wrap(float value)
public static java.lang.Object toObject(AbsPrimitive abs)
public void set(java.lang.String value)
value - the value to set.public void set(boolean value)
value - the value to set.public void set(int value)
value - the value to set.public void set(float value)
value - the value to set.public java.lang.String getString()
public int getInteger()
public float getFloat()
public boolean getBoolean()
public java.lang.Object getObject()
protected void dump(int indent)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||